package com.negocio.entidades;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
public class Matricula implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private long id;
	
	@ManyToOne
	private Usuario aluno;
	
	@ManyToOne
	private CompCurr cc;

	@Temporal(TemporalType.DATE)
	@Column(nullable=false)
	private Date dtMat;
	
	@Enumerated(EnumType.STRING)
	@Column(nullable=false)
	private SituacaoMatricula situacao;

	public Usuario getAluno() {
		return aluno;
	}

	public void setAluno(Usuario aluno) {
		this.aluno = aluno;
	}

	public CompCurr getCc() {
		return cc;
	}

	public void setCc(CompCurr cc) {
		this.cc = cc;
	}

	public Date getDtMat() {
		return dtMat;
	}

	public void setDtMat(Date dtMat) {
		this.dtMat = dtMat;
	}

	public SituacaoMatricula getSituacao() {
		return situacao;
	}

	public void setSituacao(SituacaoMatricula situacao) {
		this.situacao = situacao;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
}
